﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityPet
{
    [Table("I01")]
    /// <summary>
    /// 宠物保险
    /// </summary>
    public class Pet_insurance
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Column("I001")]
        /// <summary>
        /// 宠物编号
        /// </summary>
        public Guid Id { get; set; }

        [Column("I0012")]
        [StringLength(30)]
        /// <summary>
        /// 投保人
        /// </summary>
        public string? Insured { get; set; }

        [Column("I003")]
        [StringLength(30)]
        /// <summary>
        /// 电话号码或邮箱
        /// </summary>
        public string? PhoneNumber { get; set; }

        [Column("I004")]
        [StringLength(30)]
        /// <summary>
        /// 宠物姓名
        /// </summary>
        public string? PetName { get; set; }

        [Column("I005")]
        [StringLength(30)]
        /// <summary>
        /// 宠物品种
        /// </summary>
        public string? PetBreeds { get; set; }

        [Column("I006")]
        [StringLength(30)]
        /// <summary>
        /// 投保项
        /// </summary>
        public string? InsuranceCover { get; set; }

        /// <summary>
        /// 投保方式：1 实体店签约（约时间）2 线上签约（教程）
        /// </summary>
        public string? Insmethod { get; set; }

        [Column("I007")]
        /// <summary>
        /// 投保时间
        /// </summary>
        public DateTime InsurTime { get; set; }

        [Column("I008")]
        /// <summary>
        /// 投保失效时间
        /// </summary>
        public DateTime InsurExpire { get; set; }

        [Column("I009")]
        /// <summary>
        /// 是否续约
        /// </summary>
        public bool Renewal_contract { get; set; }

      
    }
}
